package com.memory.search.model.dto.message;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author 邓哈哈
 * 2024/2/3 18:41
 * Function:
 * Version 1.0
 */

/**
 * 搜索词 ES 包装类
 *
 * @author memory
 **/
@Document(indexName = "search_text")
@Data
public class MessageEsDTO {
    /**
     * 文章id
     */
    @Id
    private String id;

    /**
     * 用户
     */
    private Long userId;

    /**
     * 搜索词条
     */
    private String searchText;
}
